﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CalculatorArithmetic
{
    class Program
    {
        static void Main(string[] args)
        {
            /*int a = 1;
            string outStr = "";
            string InfixExp = "123456a234s((()))d+";
            for (int i = 0; i < InfixExp.Length; i++)
            {
                char temps = InfixExp[i];
                if ('0' < temps && temps < '9')
                {
                    outStr += temps + ",";
                    
                   
                }
                else if (temps.Equals('('))
                {
                    outStr += temps + ",";
                }
            }
            Console.Write(outStr);
            Console.WriteLine();
            Console.Write((++a) +","+ (a++) +"," + a);
            Console.ReadKey();*/
            ToPostfixExp mine = new ToPostfixExp();
            //string  str = "23+(34*45)/(5+6+7)=";
            string str = "23+(34*45)/(5+6+7)=";
            string str2;
            string strZ = mine.GetPostfixExp(str);
            CalculateExp cal = new CalculateExp();
            str2 = cal.GetCalculateExp(strZ);
            Console.WriteLine(strZ);
            Console.WriteLine(str + str2);
            Console.ReadKey();
        }
    }
}
